From a16d23dcde76874fab4b6bdb45067fd01b88cdc1 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 19 Jan 2022 15:50:23 +0100 Subject: chore: add opengraph and twitter meta --- src/pages/thematique/[slug].tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/pages/thematique/[slug].tsx') diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx index 1964146..93b1221 100644 --- a/src/pages/thematique/[slug].tsx +++ b/src/pages/thematique/[slug].tsx @@ -51,9 +51,10 @@ const Thematic: NextPageWithLayout = ({ thematic }) => { const meta: ArticleMeta = { dates: thematic.dates, }; + const thematicUrl = `${config.url}${router.asPath}`; const webpageSchema: WebPage = { - '@id': `${config.url}${router.asPath}`, + '@id': `${thematicUrl}`, '@type': 'WebPage', breadcrumb: { '@id': `${config.url}/#breadcrumb` }, name: thematic.seo.title, @@ -81,7 +82,7 @@ const Thematic: NextPageWithLayout = ({ thematic }) => { inLanguage: config.locales.defaultLocale, isPartOf: { '@id': `${config.url}/blog` }, license: 'https://creativecommons.org/licenses/by-sa/4.0/deed.fr', - mainEntityOfPage: { '@id': `${config.url}${router.asPath}` }, + mainEntityOfPage: { '@id': `${thematicUrl}` }, subjectOf: { '@id': `${config.url}/blog` }, }; @@ -95,6 +96,10 @@ const Thematic: NextPageWithLayout = ({ thematic }) => { {thematic.seo.title} + + + +